<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>show2</title>
</head>
<body>
<h3>
    <div th:object="${user}">
        欢迎您：：<span th:text="*{name}">请登录</span>
        欢迎您：：<span th:text="*{age}">请登录</span>
        欢迎您：：<span th:text="*{friend.name}">请登录</span>
    </div>
</h3>
</body>
</html>